package com.cat.springbootannocation.service.impl;

import com.cat.springbootannocation.entity.User;
import com.cat.springbootannocation.mapper.UserMapper;
import com.cat.springbootannocation.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zss
 * @since 2020-09-16
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public String getUser(Integer id) {
        String userName = userMapper.getUser(id);
        return userName;
    }

}
